
import i18n from '@src/locales'
enum RoleViewModeEnum {
  UserView = 'UserView',
  Edit = 'Edit',
  Create = 'Create',
  AssignedUserView = 'AssignedUserView',
}

type RoleViewTab = {
  name: string;
  key: string;
  className: string;
}

const RoleViewUserTab = () : RoleViewTab => ({
  name: i18n.t('common.base.engineer') as string,
  key: 'user',
  className: 'role-view-user-tab',
})

const RoleViewFeatureAuthTab = () : RoleViewTab => ({
  name: i18n.t('common.tabs.rolePermission') as string,
  key: 'featureAuth',
  className: 'role-view-auth-tab',
})

const RoleViewUserTablePageStorageKey = 'dept_role_list_pageSize'

type RoleViewUserTablePageStorageData = {
  user: number;
}

export {
  RoleViewUserTab,
  RoleViewFeatureAuthTab,
  RoleViewModeEnum,
  RoleViewUserTablePageStorageData,
  RoleViewUserTablePageStorageKey
}

export default {
  RoleViewUserTab,
  RoleViewFeatureAuthTab,
  RoleViewModeEnum,
  RoleViewUserTablePageStorageKey
}